<template>
  <div class="business-header">
    <div class="business-bg">
      <img :src="header.avatar" alt="" class="bg" >
      <div class="business-info">
        <div class="left">
          <img :src="header.avatar" alt="" height="64" width="64" class="business-img">
        </div>
        <div class="right">
          <div >
            <span class="right-icon">品牌</span>
            <span class="business-name">{{header.name}}</span>
          </div>
          <div>
            <span class="descripte">{{header.descripte+" / "+header.deliveryTime+"分钟送达"}}</span>
          </div>
          <div>
            <span class="decrease">减</span>
            <span class="descripte">{{header.description}}</span>
          </div>
        </div>
      </div>
    </div>
    <div class="notice">
      <span style="background-color:white;font-size: 12px;margin-right: 4px">公告</span>
      <span>{{header.bulletin}}</span>
    </div>
  </div>
</template>

<script>
  export default {
    name: "BusinessHeader",
    props:{
      header:{
        type:Object,
        default:{}
      }
    },
    created() {
      //console.log(this.header);
    }
  }
</script>

<style scoped>
  .business-bg{
    height: 130px;
    position: relative;
    background:rgba(7,17,27,0.5);
    color:#fff;
    blur:10px;
    overflow:hidden;

  }
  .bg{
    width: 100%;
    height: 100%;
    filter: blur(14px);
  }
  .business-info{
    height: 68px;
    z-index: 5;
    position: absolute;
    top: 20px;
    left: 30px;
    display: flex;

  }
  .business-info right {
    flex: 1;

  }
  .right-icon{
    background-color: red;
    color: white;
    font-size: 13px;
    width: 30px;
    height: 15px;
    line-height: 15px;
    text-align: center;
    margin-left: 10px;
  }
  .business-name{
    margin-left: 3px;
    font-size: 14px;
  }
  .descripte{
    font-size: 12px;
    margin-left: 10px;
  }
  .decrease{
    background-color: white;
    color: red;
    font-size: 11px;
    margin-left: 10px;
    width: 22px;
  }
  .notice{
    position:absolute;
    height:28px;
    line-height:28px;
    padding:0 22px 0 12px;
    overflow:hidden;
    text-overflow:ellipsis;
    background:rgba(7,17,27,0.2);
    font-size: 13px;
    top: 102px;
    z-index: 10;
  }

</style>